/*
 * @Author: 刘润泽
 * @Date: 2022-11-10 21:35:40
 * @LastEditors: 刘润泽
 * @LastEditTime: 2023-03-07 15:39:23
 * @Description: 
 */
package server.business.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import server.business.pojo.TransfusionType;
import server.business.service.TransfusionTypeService;
import server.business.utils.results.lrz.Result;

import java.util.List;

@Controller
@RequestMapping("/transfusionType")
public class TransfusionTypeController {

    @Autowired
    TransfusionTypeService transfusionTypeService;

    @GetMapping(value = "/normal/getName")
    @ResponseBody
    public Result getName() {
        List<TransfusionType> transfusionTypeList = transfusionTypeService.list();
        return Result.success(transfusionTypeList);
    }

    /**
     * myq
     * 
     * @return
     */
    @GetMapping("/normal/type")
    @ResponseBody
    public List<TransfusionType> getType() {
        return transfusionTypeService.list();
    }

}
